home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DS-CD ROM 2 1993 August
/
DS CD-ROM 2.Ausgabe (August 1993).iso
/
utility
/
ds0360
/
pb32.exe
/
INFO.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-09-04
|
14KB
|
587 lines
echo off
rem ##############################################################
rem ## ##
rem ## I N F O ##
rem ## ##
rem ## Hilfe-System für das Programm PROFIBATCH V3.0 ##
rem ## ##
rem ## (c) 1991 by W. Andreas Pollack ##
rem ## ##
rem ##############################################################
rem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rem Variablen
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set menu=info
set dy=▒
set im=Info
set km=Kontext
set sm=Schalter
set om=Optionen
set dm=DOS
set rm=Registrierung
set hm=Hilfe
goto start
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rem Subroutinen
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REM Löscht nur die obere Hälfte
:refresh1
set menu=
REM infotxt.1,-X1,-Y1,-H3,-V0,-R0,-O
REM infotxt.2,-X3,-Y1,-H3,-V15,-R0,-O
REM infotxt.3,-X11,-Y1,-H3,-V15,-R0,-O
REM infotxt.4,-X22,-Y1,-H3,-V15,-R0,-O
REM infotxt.5,-X34,-Y1,-H3,-V15,-R0,-O
REM infotxt.6,-X46,-Y1,-H3,-V15,-R0,-O
REM infotxt.7,-X53,-Y1,-H3,-V15,-R0,-O
REM infotxt.8,-X70,-Y1,-H3,-V15,-R0,-O
REM infotxt.9,-X1,-Y2,-R0,-O
USELIB 1-9 INFO
goto main
REM Löscht alles
:refresh2
set menu=
REM infotxt.10,-X1,-Y1,-H3,-V0,-R0,-O
REM infotxt.11,-X3,-Y1,-H3,-V15,-R0,-O
REM infotxt.12,-X11,-Y1,-H3,-V15,-R0,-O
REM infotxt.13,-X22,-Y1,-H3,-V15,-R0,-O
REM infotxt.14,-X34,-Y1,-H3,-V15,-R0,-O
REM infotxt.15,-X46,-Y1,-H3,-V15,-R0,-O
REM infotxt.16,-X53,-Y1,-H3,-V15,-R0,-O
REM infotxt.17,-X70,-Y1,-H3,-V15,-R0,-O
REM infotxt.18,-X1,-Y2,-R0,-O
USELIB 10-18 INFO
goto main
:lastmenu
REM infotxt.19,-X1,-Y2,-R0,-O
USELIB 19 INFO
goto %menu%
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rem Jetzt geht's richtig los...
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
:start
REM -F,-C
REM infotxt.21,-X1,-Y1,-H3,-V0,-R0,-O
REM infotxt.22,-X3,-Y1,-H3,-V15,-R0,-O
REM infotxt.23,-X11,-Y1,-H3,-V15,-R0,-O
REM infotxt.24,-X22,-Y1,-H3,-V15,-R0,-O
REM infotxt.25,-X34,-Y1,-H3,-V15,-R0,-O
REM infotxt.26,-X46,-Y1,-H3,-V15,-R0,-O
REM infotxt.27,-X53,-Y1,-H3,-V15,-R0,-O
REM infotxt.28,-X70,-Y1,-H3,-V15,-R0,-O
REM infotxt.29,-X1,-Y2,-R0,-O
REM infotxt.30,-X1,-Y25,-H6,-V15,-R0,-O
USELIB 20-30 INFO
goto %menu%
rem +++++++++++++++++++++++++++++++++++++++++++
rem Hier beginnt das Hauptmenü
rem +++++++++++++++++++++++++++++++++++++++++++
:main
REM -NDY,-X80,-Y24,-R0
USELIB 31 INFO
if errorlevel 254 goto end
if errorlevel 116 goto main
if errorlevel 115 goto schalter
if errorlevel 114 goto registrierung
if errorlevel 112 goto main
if errorlevel 111 goto optionen
if errorlevel 108 goto main
if errorlevel 107 goto kontext
if errorlevel 106 goto main
if errorlevel 105 goto info
if errorlevel 104 goto hilfe
if errorlevel 101 goto main
if errorlevel 100 goto dos
if errorlevel 20 goto main
goto main
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rem Die Menüs in der Header-Zeile (doppelter Rahmen!)
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
:info
REM -NIM,-X3,-Y1,-H7,-V0,-R0,-O
REM infotxt.33,-H7,-V0,-S,-Z5
REM infotxt.37,-U Das leistet Ihr Programm ,-H7,-V0,-S
REM infotxt.38,-U So einfach geht das! ,-H7,-V0,-R1,-S
USELIB 32-33 INFO
USELIB 37-38 INFO
goto refresh1
:kontext
set menu=kontext
REM -NKM,-X11,-Y1,-H7,-V0,-R0,-O
REM infotxt.40,-U Kontext ,-X11,-Y2,-H7,-V0,-S,-O,-M
USELIB 39-40 INFO
if errorlevel 254 goto refresh1
if errorlevel 9 goto output
if errorlevel 8 goto menufunktion
if errorlevel 7 goto mausmenu
if errorlevel 6 goto libmenu
if errorlevel 5 goto input
if errorlevel 4 goto steuer
if errorlevel 3 goto bildschmenu
if errorlevel 2 goto textmenu
if errorlevel 1 goto verschmenu
:schalter
set menu=schalter
set submenu=schalter
REM -NSM,-X22,-Y1,-H7,-V0,-R0,-O
REM infotxt.42,-U Schalter ,-X22,-Y2,-H7,-V0,-S,-O,-M
USELIB 41-42 INFO
if errorlevel 254 goto refresh1
if errorlevel 7 goto steuer
if errorlevel 6 goto output
if errorlevel 5 goto mausmenu
if errorlevel 4 goto input
if errorlevel 3 goto farben
if errorlevel 2 goto erstellen
if errorlevel 1 goto clear
:optionen
set menu=optionen
set submenu=optionen
REM -NOM,-X34,-Y1,-H7,-V0,-R0,-O
REM infotxt.44,-U Optionen ,-X34,-Y2,-H7,-V0,-S,-O,-M
USELIB 43-44 INFO
if errorlevel 254 goto refresh2
if errorlevel 14 goto zeit
if errorlevel 13 goto y
if errorlevel 12 goto x
if errorlevel 11 goto obligat
if errorlevel 10 goto vorder
if errorlevel 9 goto uberschrift
if errorlevel 8 goto schatten
if errorlevel 7 goto rahmen
if errorlevel 6 goto piep
if errorlevel 5 goto textOHNE
if errorlevel 4 goto hinter
if errorlevel 3 goto clear
if errorlevel 2 goto breite
if errorlevel 1 goto erweitern
:dos
set menu=dos
REM -NDM,-X46,-Y1,-H7,-V0,-R0,-O
REM infotxt.46,-U DOS-Funktionen ,-X46,-Y2,-H7,-V0,-S,-O,-M
USELIB 45-46 INFO
if errorlevel 254 goto refresh1
if errorlevel 4 goto formatieren
if errorlevel 3 goto kopieren
if errorlevel 2 goto programm
if errorlevel 1 goto dosshell
:registrierung
REM infotxt.50,-U Dahin geht's! ,-S
USELIB 50 INFO
goto refresh1
:hilfe
REM -NHM,-X70,-Y1,-H7,-V0,-R0,-O
REM infotxt.52,-U Gebrauchsanweisung ,-H7,-V0,-S
USELIB 51-52 INFO
goto refresh1
rem +++++++++++++++++++++++++++++++++++++++++++++++
rem Verschiedene Unter-Menüs (einfachen Rahmen!)
rem +++++++++++++++++++++++++++++++++++++++++++++++
:verschmenu
set submenu=verschmenu
REM infotxt.53,-U Verschiedenes ,-X33,-Y2,-H7,-V0,-R1,-S,-M
USELIB 53 INFO
if errorlevel 254 goto %menu%
if errorlevel 6 goto bat2q
if errorlevel 5 goto lib2txt
if errorlevel 4 goto esc
if errorlevel 3 goto piep
if errorlevel 2 goto help
if errorlevel 1 goto syntax
:textmenu
set submenu=textmenu
REM infotxt.54,-U Textpräsentation ,-X33,-Y3,-H7,-V0,-R1,-S,-M
USELIB 54 INFO
if errorlevel 254 goto %menu%
if errorlevel 10 goto hinter
if errorlevel 9 goto vorder
if errorlevel 8 goto obligat
if errorlevel 7 goto zeit
if errorlevel 6 goto textOHNE
if errorlevel 5 goto textMIT
if errorlevel 4 goto uberschrift
if errorlevel 3 goto schatten
if errorlevel 2 goto rahmen
if errorlevel 1 goto xy
:bildschmenu
REM infotxt.55,-U Bildschirm ,-X33,-Y4,-H7,-V0,-R1,-S,-M
USELIB 55 INFO
if errorlevel 254 goto %menu%
if errorlevel 2 goto farben
if errorlevel 1 goto clear
:libmenu
set submenu=libmenu
REM infotxt.56,-U Bibliothek ,-X33,-Y7,-H7,-V0,-R1,-S,-M
USELIB 56 INFO
if errorlevel 254 goto %menu%
if errorlevel 3 goto benutzen
if errorlevel 2 goto erweitern
if errorlevel 1 goto erstellen
:mausmenu
set submenu=mausmenu
REM infotxt.57,-U Mausfunktionen ,-X33,-Y8,-H7,-V0,-R1,-S,-M
if "%menu%" == "kontext" USELIB 57 INFO
REM infotxt.58,-U Mausfunktionen ,-X51,-Y6,-H7,-V0,-R1,-S,-M
if "%menu%" == "schalter" USELIB 58 INFO
if errorlevel 254 goto %menu%
if errorlevel 8 goto mausxrange
if errorlevel 7 goto mausyrange
if errorlevel 6 goto mausposition
if errorlevel 5 goto mauslesen
if errorlevel 4 goto mausoff
if errorlevel 3 goto mauson
if errorlevel 2 goto mausinit
if errorlevel 1 goto mausinfo
rem ++++++++++++++++++++++++++++++++++++++++
rem Info - Texte
rem +++++++++++++++++++++++++++++++++++++++
:output
REM infotxt.59,-U Variablen-Anzeige
USELIB 59 INFO
goto %menu%
:steuer
REM infotxt.60,-U Quelldateien
REM infotxt.61,-U Quelldateien
REM infotxt.62,-U Ein Beispiel... ,-H7,-V0
USELIB 60-62 INFO
goto %menu%
:input
REM infotxt.63,-U Und jetzt das Tollste! ,-O
REM -ITMP,-B30,-U Versuchen Sie's doch mal! ,-X31,-Y3,-H7,-V0,-O
USELIB 63-64 INFO
if errorlevel 254 goto lastmenu
REM infotxt.65,-U Das haben Sie eingegeben ,-X31,-Y7,-H6,-R1,-S,-O
USELIB 65 INFO
if "%tmp%" == "" goto inp1
REM -NTMP,-X33,-Y9,-H6,-V15,-R0
USELIB 66 INFO
:inp1
REM infotxt.67,-U Aber ... ,-H7,-V0,-S
USELIB 67 INFO
set tmp=
goto lastmenu
:menufunktion
REM infotxt.68,-H7,-V0,-S,-M
USELIB 68 INFO
if errorlevel 254 goto %menu%
if errorlevel 19 goto men0
if errorlevel 17 goto men1
if errorlevel 1 goto men0
:men0
REM infotxt.69,-U NO! ,-H4,-V15,-S,-P,-Z2
USELIB 69 INFO
goto menufunktion
:men1
REM infotxt.70,-U YEAH! ,-H2,-V15,-S,-Z2
USELIB 70 INFO
goto %menu%
:syntax
REM infotxt.71,-U SYNTAX 1
REM infotxt.72,-U SYNTAX 2
REM infotxt.73,-U SYNTAX 3
USELIB 71-73 INFO
goto %submenu%
:piep
REM infotxt.74,-H4,-V15,-P
USELIB 74 INFO
goto %submenu%
:x
REM infotxt.75,-U Die vertikalen-Koordinaten ,-X1
USELIB 75 INFO
goto %menu%
:y
REM infotxt.76,-U Die horizontalen-Koordinaten ,-Y1
USELIB 76 INFO
goto %menu%
:xy
REM infotxt.77,-U Die vertikalen-Koordinaten ,-X1
REM infotxt.78,-U Die horizontalen-Koordinaten ,-Y1
USELIB 77-78 INFO
goto %submenu%
:rahmen
REM infotxt.79,-U Die Rahmentypen ,-R1
USELIB 79 INFO
goto %submenu%
:schatten
REM infotxt.80,-U Und der Schatten ,-S
USELIB 80 INFO
goto %submenu%
:uberschrift
REM infotxt.81,-U Das ist die Überschrift
USELIB 81 INFO
goto %submenu%
:textMIT
REM infotxt.82,-U So geht's am Einfachsten!
USELIB 82 INFO
goto %submenu%
:textOHNE
REM infotxt.83,-Y1,-V15,-S,-O
REM infotxt.84,-X1,-Y5,-H7,-V0,-S
REM -F,-H1,-V15,-C
REM infotxt.86,-X1,-Y1,-V15,-R0,-O
REM infotxt.87,-X1,-Y25,-V15,-R0,-O
REM infotxt.88,-X1,-Y2,-V15,-R0,-O
REM infotxt.89,-X79,-Y2,-V15,-R0,-O
REM infotxt.90,-V13,-S
REM -F,-C
REM infotxt.92,-X1,-Y1,-H7,-V0,-O
REM infotxt.93,-X10,-Y5,-H7,-V0,-O
REM infotxt.94,-X20,-Y10,-H7,-V0,-O
REM infotxt.95,-X30,-Y15,-H7,-V0,-O
REM infotxt.96,-X40,-Y20
USELIB 83-96 INFO
goto start
:zeit
REM infotxt.97,-U Man läßt sich ja Zeit! ,-Z60
USELIB 97 INFO
goto %submenu%
:obligat
REM infotxt.98,-U Eine hilfreiche Unterstützung zur Abfrage! ,-Wj
USELIB 98 INFO
goto %submenu%
:vorder
REM infotxt.99,-U Die Vordergrundfarben ,-V15
USELIB 99 INFO
goto %submenu%
:hinter
REM infotxt.100,-U Die Hintergrundfarben ,-H7,-V0
USELIB 100 INFO
goto %submenu%
:farben
REM -F,-H7,-V0,-C
REM infotxt.102,-U Wenn man an den Bildschirm will ...
REM infotxt.103,-U So geht's! ,-R1
USELIB 101-103 INFO
goto start
:clear
REM infotxt.104,-U Löschen tut nicht nur die Feuerwehr! ,-C
USELIB 104 INFO
goto start
:breite
REM infotxt.105,-U Die INPUT-Breite ,-Y5,-O
REM -ITMP,-B50,-U Dieses INPUT-Fenster ist 50 Zeichen breit! ,-Y20,-H6,-V15,-S
USELIB 105-106 INFO
set tmp=
goto lastmenu
:erstellen
REM infotxt.107,-U Und so geht alles viel schneller!
USELIB 107 INFO
goto %submenu%
:erweitern
REM infotxt.108,-U An alles ist gedacht ...
USELIB 108 INFO
goto %submenu%
:benutzen
REM infotxt.109,-U So wird's gemacht!
REM infotxt.110,-U Das war noch nicht alles!
REM infotxt.111,-U ... und noch mehr!
USELIB 109-111 INFO
goto %submenu%
:mausyrange
REM infotxt.112,-U Die Zeilen einschränken?
USELIB 112 INFO
goto %submenu%
:mausxrange
REM infotxt.113,-U Die Spalten einschränken?
USELIB 113 INFO
goto %submenu%
:mausposition
REM infotxt.114,-U Wo soll sie denn hin?
USELIB 114 INFO
goto %submenu%
:mauslesen
REM infotxt.115,-U Das ist das Wichtigste!
USELIB 115 INFO
goto %submenu%
:mausoff
REM infotxt.116,-U Weg ist die Maus!
USELIB 116 INFO
goto %submenu%
:mauson
REM infotxt.117,-U Igittigitt! Eine Maus!
USELIB 117 INFO
goto %submenu%
:mausinit
REM infotxt.118,-U So fängt man an ...
USELIB 118 INFO
goto %submenu%
:mausinfo
REM infotxt.119,-U Das sollten Sie beachten!
USELIB 119 INFO
goto %submenu%
:esc
REM infotxt.120,-U Und wie steig ich aus?
USELIB 120 INFO
goto %submenu%
:help
REM infotxt.121,-U Kunststoffüberzug nicht zum Verzehr geeignet!
USELIB 121 INFO
goto %submenu%
:lib2txt
REM infotxt.122,-U Das ist der Spion!
USELIB 122 INFO
goto %submenu%
:bat2q
REM infotxt.123,-U So geht alles viel einfacher ...
REM infotxt.124,-U Die OPTIONEN
REM infotxt.125
REM infotxt.126
USELIB 123-126 INFO
goto %submenu%
rem ++++++++++++++++++++++++++++++++++++++++
rem Error-Meldungen
rem ++++++++++++++++++++++++++++++++++++++++
:warn
set lw=
REM infotxt.127,-H4,-V142,-S,-P
USELIB 127 INFO
goto lastmenu
:inputerr
set tmp=
REM infotxt.128,-H4,-V14,-S,-P
USELIB 128 INFO
goto lastmenu
rem ++++++++++++++++++++++++++++++++++++++
rem Prozeduren
rem ++++++++++++++++++++++++++++++++++++++
:dosshell
REM -F,-C
USELIB 129 INFO
echo Geben Sie EXIT ein, um zu INFO zurückzukehren!
command
set menu=dos
goto start
:programm
REM -IARGS,-B40,-U Bitte einen DOS-Befehl eingeben! ,-X7,-Y3,-H7,-V0,-R1,-S
USELIB 130 INFO
if errorlevel 254 goto %menu%
if errorlevel 1 goto exedos
:exedos
if "%ARGS%" == "" goto %menu%
REM -F,-C
USELIB 131 INFO
command /c %ARGS%
set args=
echo Drücken Sie eine Taste um zu INFO zurückzukehren...
REM -NDY,-X80,-Y25,-V0,-R0
USELIB 132 INFO
set menu=dos
goto start
:kopieren
set src=A
set dst=A
REM infotxt.133,-U Source ,-X25,-Y3,-H7,-V0,-R1,-S,-O
REM -ISRC,-B1,-X36,-Y7,-H7,-V15,-R0,-O
USELIB 133-134 INFO
if errorlevel 254 goto lastmenu
REM infotxt.135,-U Destination ,-X25,-Y12,-H7,-V0,-R1,-S,-O
REM -IDST,-B1,-X36,-Y16,-H7,-V15,-R0,-O
USELIB 135-136 INFO
if errorlevel 254 goto lastmenu
REM -F,-C
USELIB 137 INFO
diskcopy %src%: %dst%:
set src=
set dst=
set menu=dos
goto start
:formatieren
set lw=A
REM infotxt.138,-U Formatieren ,-X23,-Y6,-H7,-V0,-R1,-S,-O
REM -ILW,-B1,-X35,-Y10,-H7,-V15,-R0,-O
USELIB 138-139 INFO
if errorlevel 254 goto lastmenu
if "%lw%" == "A" goto form
if "%lw%" == "B" goto form
if "%lw%" == "a" goto form
if "%lw%" == "b" goto form
goto warn
:form
REM -F,-C
USELIB 140 INFO
format %lw%:
set lw=
set menu=dos
goto start
rem ++++++++++++++++++++++++++++++++++++++++
rem E N D E
rem ++++++++++++++++++++++++++++++++++++++++
:end
set menu=
set submenu=
set im=
set km=
set sm=
set om=
set dm=
set rm=
set hm=
set dy=
REM -F,-C
USELIB 141 INFO